package book;

public class BookList {
    private static final int DEFAULT_SIZE=10;
    private Book[] books=new Book[DEFAULT_SIZE];
    private int usedSize;
    public void setBooks(int pos,Book book){//指定位置放一本书
        books[pos]=book;
    }

    public Book[] getBooks() {
        return books;
    }

    public void setBooks(Book[] books) {
        this.books = books;
    }

    public int getUsedSize() {
        return usedSize;
    }

    public void setUsedSize(int usedSize) {
        this.usedSize = usedSize;
    }
}
